/*******************************************************
> Copyright (C) 2024 ==IOT== All rights reserved.
> File Name: pointer.c
> Author: IOT
> Website:www.slq.org
> Created Time: 2024年10月15日 星期二 15时42分22秒
***************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>

int main(int argc,const char* argv[])
{
	char a;
	char b;
	char c;

	printf("%p, %p, %p\n", &a, &b, &c);
	
	printf("the size of pointer: %ld\n", sizeof(char *));

	int i = 0;
	printf("address of i: %p\n", &i);

	*&i = 10;
	//i = 10;

	printf("i = %d\n", i);
    return 0;
}

